﻿using FwProject.Comm.ExcelUtil;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace FwProject.PrePaymentInfo.Dto
{
    [DisplayName(displayName: "结算账户收支明细")]
    public class SettleAccountsKnowingOutputDto
    {
        /// <summary>
        /// 单据类型
        /// </summary>
        [DisplayName(displayName: "单据类型")]
        [ExcelDateMember]
        public BillTypeEnum DocumentType { get; set; }

        /// <summary>
        /// 单据编号
        /// </summary>
        [DisplayName(displayName: "单据编号")]
        [ExcelDateMember]
        public string DocumentNumber { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        [DisplayName(displayName: "创建日期")]
        [ExcelDateMember]
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 餐厅名称
        /// </summary>
        [DisplayName(displayName: "餐厅名称")]
        [ExcelDateMember]
        public string RestaurantName { get; set; }

        /// <summary>
        /// 经办人
        /// </summary>
        [DisplayName(displayName: "经办人")]
        [ExcelDateMember]
        public string AgentPeoper { get; set; }

        public Guid SettlementAccountId { get; set; }

        /// <summary>
        /// 结算账户
        /// </summary>
        [DisplayName(displayName: "结算账户")]
        [ExcelDateMember]
        public string SettlementAccount { get; set; }

        /// <summary>
        /// 收入金额
        /// </summary>
        [DisplayName(displayName: "收入金额")]
        [ExcelDateMember(IsSum = true)]
        public decimal Income { get; set; }

        /// <summary>
        /// 支出金额
        /// </summary>
        [DisplayName(displayName: "支出金额")]
        [ExcelDateMember(IsSum = true)]
        public decimal Expenditure { get; set; }

        /// <summary>
        /// 余额
        /// </summary>
        [DisplayName(displayName: "余额")]
        [ExcelDateMember(IsSum = true)]
        public decimal Over { get; set; } = 0m;

    }
}
